class Cat:
    def __init__(self, name):
        self.name = name
    def speak(cls):
        print('shout~~~~~~~~~~~~~~~~~~')

    def miao(self):
        print('miao~~~~~~~~~~~~~~~~~~~')
cat = Cat('mimi')
print(cat.name)
cat.miao()
print(Cat.name)   #实例属性不能通过类名来调
cat.miao()


#静态方法中不能调成员方法即：实例；反之可以
